#include<iostream>
using namespace std;
class CVector {
private:
	int* data;
	int n;
public:
	CVector();
	void print();
	CVector(int n1, int* a);
	~CVector();
};
CVector::CVector() {
	n = 5;
	data = new int[n];
	for (int i = 0; i < n; i++) {
		data[i] = i;
	}
}
CVector::CVector(int n1, int* a) {
	n = n1;
	data = new int[n1];
	for (int i = 0; i < n1; i++) {
		data[i] = a[i];
	}
}
void CVector::print() {
	for (int i = 0; i < n; i++) {
		if (i == n - 1) {
			cout << data[i] << endl;
		}
		else {
			cout << data[i] << ' ';
		}
	}
}
CVector::~CVector() {
	delete[] data;
}
int main()
{
	int n;
	cin >> n;
	CVector C1;
	C1.print();
	int* arr = new int[n];
	for (int i = 0; i < n; i++) {
		cin >> arr[i];
	}
	CVector C2(n, arr);
	C2.print();
	return 0;
}